import {post} from '@/utils/http'

export function addCartAPI(params){
  return post('/product/product-client/api/shoppingCart/addCart',params,{
      Headers:{
        'Content-Type':'application/json'
      }
  })
}

export function mergeCartListAPI(params){
  return post('/product/product-client/api/shoppingCart/mergeCartList',params,{
      Headers:{
        'Content-Type':'application/json'
      }
  })
}

export const deleteCartAPI = (userId,productId) =>{
   return  post(`/product/product-client/api/shoppingCart/deleteCartByUserIdAndProductId?userId=${userId}&productId=${productId}`)
}

export const getCartByUserIdAPI = (userId) =>{
   return  post(`/product/product-client/api/shoppingCart/getCartByUserId?userId=${userId}`)
}





